//
//  TabButton.m
//  科技资讯
//
//  Created by qianfeng on 15/10/14.
//  Copyright (c) 2015年 YM. All rights reserved.
//

#import "TabButton.h"

@implementation TabButton
-(instancetype)initWithFrame:(CGRect)frame{
    if(self=[super initWithFrame:frame]){
        self.titleLabel.font = [UIFont systemFontOfSize:13];
        self.titleLabel.textAlignment = NSTextAlignmentLeft;
        [self setTitleColor:SetColor(51, 51, 51, 1) forState:UIControlStateNormal];
        [self setTitleColor:MainColor forState:UIControlStateSelected];
    }
    return self;
}
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(18, 7.5, 15, 15);
}
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(43, 9, contentRect.size.width - 70, 13);
}
@end
